<?php if (is_array($goodsBase) && !empty($goodsBase)) : ?>
<div class="ewm-ticket scanpay-product-info">
    <?php foreach ($goodsBase as $key=>$ticket) :?>
    <h5 class="flex">
        <p class="flex-1"><?php echo $cat_id[$key];?></p>
    </h5>
    <ul class="ticket-ul">
        <?php foreach ($ticket as $item) :?>
        <li>
            <div class="ticket-text flex-1 buyvive-ticket modal-ticket-descript" data-goods-id="<?php echo $item->goods_id ?>">
                <p class="ticket-alt line2-clamp"><?php echo $item->goods_name; ?></p>
                <div class="ket-title flex">
                    <div class="ket-right flex-1">票类说明 &gt;</div>
                </div>
            </div>

            <?php if (in_array($item->goods_id, $goods_id)) :?>
                <a href="javascript:;" class="ket-price buy-ticket buyvive-false" data-goods-id="<?php echo $item->goods_id; ?>">
                    <i>在线预订</i>
                    <p>已选</p>
                </a>
            <?php else : ?>
                <a href="javascript:;" class="ket-price buy-ticket vive-rese" data-goods-id="<?php echo $item->goods_id; ?>">
                    <i><span>￥</span><?php echo $item->market_price; ?></i>
                    <p>在线预订</p>
                </a>
            <?php endif;?>
        </li>
        <?php endforeach; ?>
    </ul>
    <?php endforeach; ?>
</div>
<?php endif; ?>